import { defineStore } from "pinia";
import type { ConfigProviderTheme } from 'vant'

export const useThemeStore = defineStore({
  id: "theme",
  persist: true,
  state: () => ({
    theme: "dark" as ConfigProviderTheme
  }),
  actions: {
    setTheme(theme: ConfigProviderTheme) {
      this.theme = theme;
    }
  }
});
